package com.cs.vessel.breakdown;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import com.cs.vessel.breakdown.view.ConfigurationView;
import com.cs.vessel.breakdown.view.NavigationView;

public class Perspective implements IPerspectiveFactory {

    /**
     * The ID of the perspective as specified in the extension.
     */
    public static final String ID = "com.cs.vessel.breakdown.perspective";

    public void createInitialLayout(IPageLayout layout) {
        String editorArea = layout.getEditorArea();
        layout.setEditorAreaVisible(false);

        layout.addStandaloneView(NavigationView.ID, false, IPageLayout.LEFT, 0.25f, editorArea);
        layout.addStandaloneView(ConfigurationView.ID, true, IPageLayout.RIGHT, 0.75f, editorArea);

        layout.getViewLayout(NavigationView.ID).setCloseable(false);
        layout.getViewLayout(ConfigurationView.ID).setCloseable(false);
    }
}
